<?

function get_dispo($ts,$id){
	global $sql;
	
	$var=$sql->request_single("select * from ".CFG_MYSQL_PREFIX."dispo where idPlayer=".$id." and ts=".$ts);
	if($var===false) return 0;
	else return $var->type;
}